﻿@model Free2AskWeb.Models.QuestionsModel

@{
    ViewBag.Title = "Search";
}

@section Styles {
    <link href="@Url.Content("~/Content/Index.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/tag.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/search.css")" rel="stylesheet" type="text/css" />
}

<h2>Search</h2>

@Html.Partial("_QuestionListPartial")

@section rightColumn{
    @Html.Partial("_TagListView",Model.Tags)
}

@section subnav{
    <div id="mainnavs">
        <ul>
            <li @(ViewBag.sort == "newest"? "class=selected":"" )>@Html.ActionLink("newest","Search",new {tagarray=ViewBag.tagarray,keyword=ViewBag.keyword,sort="newest"})</li>
            <li @(ViewBag.sort == "frequent"? "class=selected":"" )>@Html.ActionLink("frequent","Search",new {tagarray=ViewBag.tagarray,keyword=ViewBag.keyword,sort="frequent"})</li>
            <li @(ViewBag.sort == "unanswered"? "class=selected":"" ) >@Html.ActionLink("unanswered","Search",new {tagarray=ViewBag.tagarray,keyword=ViewBag.keyword,sort="unanswered"})</li>
            <li @(ViewBag.sort == "active"? "class=selected":"" )>@Html.ActionLink("active","Search",new {tagarray=ViewBag.tagarray,keyword=ViewBag.keyword,sort="active"})</li>
        </ul>
    </div>
}